import request from '@/utils/request'

//全宗列表
export function qzjList(query) {
  return request({
    url: '/archive/qzj/list',
    method: 'get',
    params: query
  })
}

// 全宗删除
export function qzjdel(data) {
    console.log('sdklfjsdkl')
    return request({
      url: '/archive/qzj/del',
      method: 'DELETE',
      data:data
    })
}
// 全宗添加
export function qzjAdd(data) {
    return request({
      url: '/archive/qzj',
      method: 'POST',
      data: data
    })
  }
// 全宗ID获取详情
export function qzjDeilte(id) {
    return request({
      url: '/archive/qzj/'+id,
      method: 'GET',
    })
  }
// 全宗修改
export function qzjdeit(data) {
    return request({
      url: '/archive/qzj',
      method: 'PUT',
      data: data
    })
  }

//文件列表
export function qzjfileList(ID) {
    return request({
      url: '/archive/qzjfile/'+ID,
      method: 'GET',
    })
  }

//删除文件
export function deletefile(data) {
    return request({
      url: '/archive/qzjfile/del',
      method: 'DELETE',
      data:data
    })
  }
// 添加全宗卷
export function qzjInfoAdd(data) {
    return request({
      url: '/archive/qzjInfo',
      method: 'POST',
      data: data
    })
  }

//全宗详情列表
export function qzjInfoList(query) {
    return request({
      url: '/archive/qzjInfo/list',
      method: 'GET',
      params: query
    })
  }

//删除全宗卷
export function qzjInfoDel(data) {
    return request({
      url: '/archive/qzjInfo/del',
      method: 'DELETE',
      data:data
    })
  }
//根据ID获取详情
export function qzjInfoDeilte(ID) {
    return request({
      url: '/archive/qzjInfo/'+ID,
      method: 'GET'
    })
  }

  //修改全宗卷
export function qzjInfoDeit(data) {
    return request({
      url: '/archive/qzjInfo/',
      method: 'PUT',
      data:data
    })
  }

//获取打印地址
export function geturl(data) {
  return request({
    url: '/archive/report/geturl',
    method: 'POST',
    data: data
  })
}
//heneimulu    返回Data  给打印地址反data参数
export function getqzjsj(treeId) {
  return request({
    url: '/archive/getStaticModelData/getQzjData/'+treeId,
    method: 'POST',
  })
}
